{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e13.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 11:17:51
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "phone students.dta"
{txt}
{com}. 
. drop if expert == 1
{txt}(95 observations deleted)

{com}. 
. set seed  358395
{txt}
{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{res}{txt}(8 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-290.93035}  
Iteration 1:{space 3}log likelihood = {res:-290.93035}  

Structural equation model{col 49}Number of obs{col 67}= {res}       181
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-290.93035

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3625739{col 26}{space 2} .0614906{col 37}{space 1}    5.90{col 46}{space 3}0.000{col 54}{space 4} .2420545{col 67}{space 3} .4830933
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0072485{col 26}{space 2} .0378307{col 37}{space 1}    0.19{col 46}{space 3}0.848{col 54}{space 4}-.0668984{col 67}{space 3} .0813954
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3850167{col 26}{space 2} .0383147{col 37}{space 1}   10.05{col 46}{space 3}0.000{col 54}{space 4} .3099212{col 67}{space 3} .4601123
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2154909{col 26}{space 2} .0388081{col 37}{space 1}    5.55{col 46}{space 3}0.000{col 54}{space 4} .1394285{col 67}{space 3} .2915533
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2058993{col 26}{space 2} .0430925{col 37}{space 1}    4.78{col 46}{space 3}0.000{col 54}{space 4} .1214395{col 67}{space 3} .2903591
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2245196{col 26}{space 2} .0432035{col 37}{space 1}    5.20{col 46}{space 3}0.000{col 54}{space 4} .1398424{col 67}{space 3} .3091968
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3435948{col 26}{space 2} .0393495{col 37}{space 1}    8.73{col 46}{space 3}0.000{col 54}{space 4} .2664712{col 67}{space 3} .4207184
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0569994{col 26}{space 2} .0059916{col 54}{space 4} .0463867{col 67}{space 3}   .07004
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0832864{col 26}{space 2} .0087549{col 54}{space 4} .0677794{col 67}{space 3} .1023411
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       181{col 27}        .{col 38}-290.9304{col 49}     9{col 58} 599.8607{col 69} 628.6472
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3625739{col 26}{space 2} .0614906{col 37}{space 1}    5.90{col 46}{space 3}0.000{col 54}{space 4} .2420545{col 67}{space 3} .4830933
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0072485{col 26}{space 2} .0378307{col 37}{space 1}    0.19{col 46}{space 3}0.848{col 54}{space 4}-.0668984{col 67}{space 3} .0813954
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3850167{col 26}{space 2} .0383147{col 37}{space 1}   10.05{col 46}{space 3}0.000{col 54}{space 4} .3099212{col 67}{space 3} .4601123
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2058993{col 26}{space 2} .0430925{col 37}{space 1}    4.78{col 46}{space 3}0.000{col 54}{space 4} .1214395{col 67}{space 3} .2903591
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2245196{col 26}{space 2} .0432035{col 37}{space 1}    5.20{col 46}{space 3}0.000{col 54}{space 4} .1398424{col 67}{space 3} .3091968
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0746537{col 26}{space 2} .0201101{col 37}{space 1}    3.71{col 46}{space 3}0.000{col 54}{space 4} .0352387{col 67}{space 3} .1140687
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0814049{col 26}{space 2}   .02088{col 37}{space 1}    3.90{col 46}{space 3}0.000{col 54}{space 4} .0404808{col 67}{space 3} .1223291
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3625739{col 26}{space 2} .0614906{col 37}{space 1}    5.90{col 46}{space 3}0.000{col 54}{space 4} .2420545{col 67}{space 3} .4830933
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0819022{col 26}{space 2} .0389228{col 37}{space 1}    2.10{col 46}{space 3}0.035{col 54}{space 4} .0056149{col 67}{space 3} .1581895
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .4664217{col 26}{space 2}  .039023{col 37}{space 1}   11.95{col 46}{space 3}0.000{col 54}{space 4}  .389938{col 67}{space 3} .5429053
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2058993{col 26}{space 2} .0430925{col 37}{space 1}    4.78{col 46}{space 3}0.000{col 54}{space 4} .1214395{col 67}{space 3} .2903591
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2245196{col 26}{space 2} .0432035{col 37}{space 1}    5.20{col 46}{space 3}0.000{col 54}{space 4} .1398424{col 67}{space 3} .3091968
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       181
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0814049{col 26}{space 2} .0228706{col 37}{space 1}    3.56{col 46}{space 3}0.000{col 54}{space 4} .0365793{col 67}{space 3} .1262306
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .4664217{col 26}{space 2} .0403927{col 37}{space 1}   11.55{col 46}{space 3}0.000{col 54}{space 4} .3872534{col 67}{space 3} .5455899
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       181
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .08140493{col 27}{space 2}-.0006639{col 38}{space 2} .02287063{col 51}{space 2} .0409541{col 63}{space 1}  .131714{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0441368{col 63}{space 1} .1357055{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .46642166{col 27}{space 2}-.0000909{col 38}{space 2} .04039271{col 51}{space 2} .3856677{col 63}{space 1} .5454809{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .3857464{col 63}{space 1}  .545629{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )   
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       181
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0746537{col 26}{space 2} .0178784{col 37}{space 1}    4.18{col 46}{space 3}0.000{col 54}{space 4} .0396127{col 67}{space 3} .1096948
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .0819022{col 26}{space 2} .0391131{col 37}{space 1}    2.09{col 46}{space 3}0.036{col 54}{space 4}  .005242{col 67}{space 3} .1585624
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       181
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .07465371{col 27}{space 2}-.0004542{col 38}{space 2} .01787841{col 51}{space 2} .0408213{col 63}{space 1}  .111133{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0443515{col 63}{space 1} .1133672{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}  .0819022{col 27}{space 2}-.0001987{col 38}{space 2} .03911306{col 51}{space 2} .0052837{col 63}{space 1} .1528741{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0054067{col 63}{space 1} .1530366{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       166
                                                {txt}F(3, 162)         =  {res}     0.81
                                                {txt}Prob > F          = {res}    0.4892
                                                {txt}R-squared         = {res}    0.0138
                                                {txt}Root MSE          =    {res} .50258

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2}  -.02416{col 26}{space 2} .0808984{col 37}{space 1}   -0.30{col 46}{space 3}0.766{col 54}{space 4}-.1839112{col 67}{space 3} .1355913
{txt}{space 4}interest {c |}{col 14}{res}{space 2} .1725543{col 26}{space 2} .1254664{col 37}{space 1}    1.38{col 46}{space 3}0.171{col 54}{space 4}-.0752063{col 67}{space 3} .4203148
{txt}{space 4}ideology {c |}{col 14}{res}{space 2} .0941243{col 26}{space 2} .1577734{col 37}{space 1}    0.60{col 46}{space 3}0.552{col 54}{space 4}-.2174334{col 67}{space 3}  .405682
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3987055{col 26}{space 2} .1222784{col 37}{space 1}    3.26{col 46}{space 3}0.001{col 54}{space 4} .1572406{col 67}{space 3} .6401705
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e13.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 11:19:41
{txt}{.-}
{smcl}
{txt}{sf}{ul off}